import Vue from 'vue'
import Router from 'vue-router'
import home from '../components/Home'
import category from '../components/Category.vue'
import marketcar from '../components/Marketcar.vue'
import mine from '../components/Mine.vue'
import category1 from '../components/Category_1.vue'
import Preference from '../components/Preference.vue'
import Commodity from '../components/Commodity.vue'
import pintuan from '../components/Pintuan.vue'
import dingdan from '../components/Dingdan.vue'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            meta: { navShow: true },
            component: home
        },
        {
            path: '/category',
            meta: { navShow: true },
            component: category
        },
        {
            path: '/marketcar',
            meta: { navShow: true },
            component: marketcar
        },
        {
            path: '/mine',
            meta: { navShow: false },
            component: mine
        }, {
            path: '/categorylist',
            meta: { navShow: false },
            component: category1
        }, {
            path: '/pintuan',
            meta: { navShow: false },
            component: pintuan
        },{
            path: '/Preference',
            meta: { navShow: false },
            component: Preference
        }, {
            path: '/commodity',
            meta: { navShow: false },
            component: Commodity
        },{
            path: '/dingdan',
            meta: { navShow: false },
            component: dingdan 
        }
    ]
})